import { CustomEnum } from "@/enums";

// 定义佣金状态枚举
export const COMMISSION_STATUS_ENUM: CustomEnum<number> = {
  PENDING: {
    value: 1,
    label: "待支付",
  },
  PAID: {
    value: 2,
    label: "已支付",
  },
};

// 定义是否逾期枚举
export const IS_OVERDUE_ENUM: CustomEnum<number> = {
  NO: {
    value: 0,
    label: "否",
  },
  YES: {
    value: 1,
    label: "是",
  },
};

export const IS_OVERDUE_MAP = {
  [IS_OVERDUE_ENUM.NO.value]: "success",
  [IS_OVERDUE_ENUM.YES.value]: "danger",
};

export const COMMISSION_STATUS_MAP = {
  [COMMISSION_STATUS_ENUM.PAID.value]: "success",
  [COMMISSION_STATUS_ENUM.PENDING.value]: "danger",
};
